package com.ley.springboot.seed.business.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {


    @RequestMapping("/index")
    public String index(ModelMap modelMap) {
        modelMap.put("name", "liuEnYuan");
        modelMap.put("age", "20");
        return "index";
    }

    @RequestMapping("/userlist")
    public String userList() {
        return "user/list";
    }
}
